package com.ddwl.schema.bo.goods.bargain;

import io.gitee.tooleek.lock.spring.boot.annotation.Key;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author hemiaojun
 * @Date 2020/10/26 9:53
 */
@Getter
@Setter
@ApiModel("用户砍价订单bo")
public class BargainOrderBo {

    @ApiModelProperty(value = "用户id",hidden = true)
    private String userId;

    @ApiModelProperty(value = "用户昵称",hidden = true)
    private String nickname;

    @Key
    @NotEmpty(message = "活动id不能为空")
    @ApiModelProperty(value = "活动id",required = true)
    private String activityId;

    @NotEmpty(message = "sku编码不能为空")
    @ApiModelProperty(value = "sku编码",required = true)
    private String barcode;

    @ApiModelProperty("收货地址id")
    private String addrId;

    @NotNull(message = "配送方式不能为空")
    @ApiModelProperty("配送方式:0快递 1商家配送 2自提")
    private Integer deliveryType;

    @ApiModelProperty("预留电话 选择自提时必填")
    private String reserveMobile;


}
